package com.threeti.jiayusms.domain.service.communicationmessage;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.threeti.jiayusms.domain.model.CommunicationMessage;
import com.threeti.jiayusms.infrastructure.communicationmessage.CommunicationMessageDao;

@Service
@Transactional
public class CommunicationMessageUpdateServiceImpl implements
		CommunicationMessageUpdateService {

	@Autowired
	private CommunicationMessageDao dao;

	@Override
	public CommunicationMessage storeCommunicationMessage(CommunicationMessage communicationMessage) {
		return dao.store(communicationMessage);
	}

	@Override
	public void removeCommunicationMessageBy(Long msgTemplateId) {
		dao.removeBy(msgTemplateId);
	}
	
	
}
